package com.website.system.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.website.system.dao.VisitorMapper;
import com.website.system.model.Visitor;
import com.website.system.service.VisitorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 访问量 服务实现类
 *
 * @author yanqb
 * @since 2019-11-01
 */
@Service
public class VisitorServiceImpl extends ServiceImpl<VisitorMapper, Visitor> implements VisitorService {

    @Resource
    VisitorMapper mapper;

    @Override
    public List<Visitor> getBrowseCount() {
        return mapper.getBrowseCount();
    }

    @Override
    public List<Visitor> getArticleCount() {
        return mapper.getArticleCount();
    }

    @Override
    public List<Visitor> getDownloadCount() {
        return mapper.getDownloadCount();
    }
}
